package org.EasyDevelop.Utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

import java.io.Serializable;

public class JsonUtils {
    public static String convertObjToJson(Object obj){
        if(null == obj) return null;
        return JSON.toJSONString(obj, SerializerFeature.DisableCircularReferenceDetect);
    }
}
